import axios from "axios";

const service = axios.create({
    baseURL:process.env.NODE_ENV === 'development'?'/api' : 'http://www.mantbox.com/channelcall/',
    timeout:60000,
})

service.interceptors.request.use(function (config) {
    return config;
},function (error) {
    return Promise.reject(error);
})
service.interceptors.response.use(function (response) {
    return response;
},function (error) {
    return Promise.reject(error);
})

export default service;